package org.zhadoop.stream.cql.semanticanalyzer.parser.visitor;

import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.SelectStatementContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.SubQueryExpressionContext;

public class SubQueryExpressionVisitor extends AbsCQLParserBaseVisitor<SubQueryExpressionContext>{
	
	private SubQueryExpressionContext context = null;
	
	public SubQueryExpressionVisitor() {
		context = new SubQueryExpressionContext();
	}
	
	
	@Override
	protected SubQueryExpressionContext defaultResult() {
		return context;
	}
	
	@Override
	public SubQueryExpressionContext visitSelectStatement(SelectStatementContext ctx) {
		SelectStatementVisitor visitor = new SelectStatementVisitor();
        context.setSelect(visitor.visit(ctx));
        return context;
	}

}
